]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
system: Just use buttonGroup instead of adding extra _actionsItem
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 18 Apr 2019 19:24:14 +0000 (14:24 -0500)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 15 May 2019 17:27:08 +0000 (17:27 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/499

js/ui/status/system.js

index b7eaef72b71001365c0aa7ae67c433e2dde29248..a7aa171cff1d3e112bd860583ee1c60322d1781c 100644 (file)
@@ -142,7 +142,7 @@ var Indicator = class extends PanelMenu.SystemIndicator {
                        this._lockScreenAction.visible ||
                        this._altSwitcher.actor.visible);
 
-        this._actionsItem.visible = visible;
+        this.buttonGroup.visible = visible;
     }
 
     _sessionUpdated() {
@@ -302,7 +302,6 @@ var Indicator = class extends PanelMenu.SystemIndicator {
         this._altSwitcher = new AltSwitcher(this._powerOffAction, this._suspendAction);
         item.add(this._altSwitcher.actor, { expand: true, x_fill: false });
 
-        this._actionsItem = item;
         this.menu.addMenuItem(item);